<script setup>
  const url =
  'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
</script>

<template>
  <el-container>
    <el-header>header</el-header>
    <el-main id="main1">
      <el-image style="width: 100%; height: 100%" :src="url"></el-image>
    </el-main>
    <el-main>main</el-main>
    <el-main>main</el-main>
    <el-footer>footer</el-footer>
  </el-container>
</template>

<style scoped>
.el-header {
  height: 34px;
  background-color: #666;
}
.el-main {
  height: 100vh;
  border-bottom: 1px solid black;
  background-color: red;
}
#main1 {
  height: calc(100vh-34px);
}
.el-footer {
  height: 34px;
  background-color: #888;
}
</style>
